#----------------------Makefile------------------------
.PHONY: all
name 	:= main
sub_name	:= 
sub_name	+= sql email account
#ui_src		+= main.ui
g_settings_SCHEMA	:= org.gtk.ts.gschema.xml

src_sub	:=
src_sub	+= $(addsuffix .c,$(sub_name))

sub_obj	:=

obj_src	:= 1

exist_glib	:= 1
exist_json	:= glib
exist_schemas	:= 1
#exist_gtk	:= 1
exist_sqlite	:= 1
#exist_mosquitto	:= 1
#exist_json	:= 5
#exist_ssl	:= 1
#exist_xml	:= 1
#exist_event	:= 1
#exist_60870	:= 1
#exist_iec61850	:= 1
#exist_m		:= 1
#exist_8300	:= 1

path_main	:= ../..
path_script	:= $(path_main)/script
include $(path_script)/Makefile.sub

all	: $(target) $(UI)

$(target)	: $(objs) Makefile main.c
	${CROSS_COMPILE}${CC} $(filter %.o,$^) main.c -g -o $@ ${CFLAGS} $(ld_inc) $(ld_libs)
$(path_obj)/%.o	: %.c
	${CROSS_COMPILE}${CC} $(ld_inc_path) -c $^ -o $@ ${CFLAGS} $(ld_libs) $(ld_inc)

include $(path_script)/Makefile.gtk
include $(path_script)/Makefile.sub2
#----------------------end-----------------------------
